/**
 * 
 */
Ext.namespace("Utils");
Utils.getPath = function(){
		var localObj = window.location;

		var contextPath = localObj.pathname.split("/")[1];

		var basePath = localObj.protocol+"//"+localObj.host+"/"+contextPath;

		return basePath;
	};
Utils.isEnableBtn = function(btns,btn_name){
    if(btns && btns.length){
	    for(var i=0;i<btns.length;i++){
	        var btn = btns[i];
	        if(btn.BTN_NAME == btn_name)
	            return false;
	    }
    }
	return true;
    
};

